$(function(){
	//所有输入无效
	$(":input").attr("disabled","true");
	//需要操作的部分有效
	$("#inputAmount").removeAttr("disabled"); 
	$("#addBtn").removeAttr("disabled"); 
	$("#beforeInput").removeAttr("disabled"); 
	$("#btn_sub").removeAttr("disabled");
	
});
function selectProductBack(rows) {
	for ( var i = 0; i < rows.length; i++) {
		$("#productId").val(rows[i].id);
		$("#productName").val(rows[i].name);
		$("#description").val(rows[i].description);
		$("#typeName").val(rows[i].typeThree_name);
		$("#model").val(rows[i].model);
		$("#productBasedCost").val(rows[i].basedCost);
		$("#additionalCost").val(rows[i].additionalCost);
		$("#installCost").val(rows[i].installCost);
		$("#measureCost").val(rows[i].measureCost);
		$("#specification").val(rows[i].specification);
			
	}
	
}
